package Chapter08.homework.Homework04;

/**
 * @author 杨森
 * @date 2022年10月08日 19:49
 */
public class Employee {
    private String name;
    private double daySal;
    private int day;
    private int level;

    public Employee() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDaySal() {
        return daySal;
    }

    public void setDaySal(double daySal) {
        this.daySal = daySal;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public Employee(String name, double daySal, int day, int level) {
        this.name = name;
        this.daySal = daySal;
        this.day = day;
        this.level = level;
    }

    public void printSal(){
        System.out.println(name+"工资为："+daySal*day*level);
    }
}
